package com.xiaohao.communication.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2019-02-05 19:55
 * @package com.xiaohao.communication
 * @description
 */
@Controller
public class DemoController {

    @RequestMapping("/demo")
    public String demo(){
        return "项目已经实现自动化构建，代码只需同步码云即可自动构建。";
    }

    @ResponseBody
    @RequestMapping("test")
    public String test(){
        return "success";
    }




}
